package com.weishi.project.training.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weishi.project.speedometer.vo.PropellerFrequencyData;
import com.weishi.project.training.domain.AccelerationLog;

import java.util.List;

public interface IAccelerationLogService extends IService<AccelerationLog> {

    /**
     * 查询实时平均桨频
     * @param shipSpeedNo
     * @param channelId
     * @return
     */
    int qryCurrentPropellerFrequency(String shipSpeedNo, Integer channelId);

    int qryCurrentPropellerFrequency(List<AccelerationLog> accelerationLogs);

    /**
     * 获取波峰
     * @param dataVos
     * @return
     */
    Object getImportantPoint(List<AccelerationLog> dataVos);

    /**
     * 获取桨频统计值
     * @param shipSpeedId
     * @param channelId
     * @param fristTime
     * @return
     */
    List<PropellerFrequencyData> qryPropellerFrequencyDate(String shipSpeedId, Integer channelId, long fristTime);

    Object qryAccelerationLogList(Integer channelId);
}
